package com.lib.util;

import com.qbw.log.XLog;

/**
 * @author qinbaowei
 * @date 2017/8/22
 * @email qbaowei@qq.com
 */

public class ParseUtil {

    public static long parseLong(String longStr) {
        try {
            return Long.parseLong(longStr);
        } catch (Exception e) {
            XLog.e(e);
        }
        return 0l;
    }

    public static int parseInt(String intStr) {
        try {
            return Integer.parseInt(intStr);
        } catch (Exception e) {
            XLog.e(e);
        }
        return 0;
    }
}
